package com.oceansoft.core.jxkh.service.impl;

import com.oceansoft.core.common.util.Pagination;
import com.oceansoft.core.domain.SysDept;
import com.oceansoft.core.jxkh.dao.IDepartmentDao;
import com.oceansoft.core.jxkh.domain.Department;
import com.oceansoft.core.jxkh.service.IDepartmentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

/**
 * Created by OS on 2017/12/5.
 */


@Service
public class DepartmentServiceImpl implements IDepartmentService{

    @Resource
    private IDepartmentDao departmentDao;

    @Override
    public Pagination findAllDepartmentInfo(HashMap<String,String> map) {
        return departmentDao.findAllDepartmentInfo(map);
    }

    @Override
    public void editDepartmentInfo(SysDept sysDept) {
        departmentDao.editDepartmentInfo(sysDept);
    }

    @Override
    public SysDept findDepartmentInfoByDbid(int dbid) {
        return departmentDao.findDepartmentInfoByDbid(dbid);
    }

    @Override
    public Pagination findDepartmentInfoByDeptId(HashMap<String, String> map) {
        return departmentDao.findDepartmentInfoByDeptId(map);
    }

    @Override
    public void deleteDepartmentInfoByDbid(int dbid) {
        departmentDao.deleteDepartmentInfoByDbid(dbid);
    }
}
